#projektit {
  margin: 0;
  padding: 0;
}


#palloProjektit {
  position: fixed;
  pointer-events: none;
  top: 0;
  left: 0;
  background: #f0ebdb;
  border-radius: 50%;
  z-index: 9999;
  filter: none;
  box-shadow: none;
  width: 20px;  
  height: 20px;
  transition: background 0.5s ease;
}



.projekti-block-one,
.projekti-block-two{
  position: relative;
  width: 100%;
  min-height: 92vh;               
  background-color: #000;          
  display: flex;                   
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8vh 4vw;                
}


.inner-box-one,
.inner-box-two{
  position: relative;              
  top: auto; left: auto;           
  width: min(1100px, 86vw);        
  aspect-ratio: 16 / 9;            
  height: auto;                    
  background: radial-gradient(120% 120% at 20% 0%, #0d1321 0%, #121a2a 40%, #0d1321 100%);
  border: 1px solid rgba(116,140,171,0.25);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  overflow: hidden;
  transform: none;                  
}


.inner-box-one::after,
.inner-box-two::after{
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 70% 30%, rgba(116,140,171,.22), transparent 60%);
  pointer-events: none;
  opacity: .7;
}


.projekti-block-one-text,
.box-text-two{
  position: static;                
  margin-top: 8px;
  color: #f0ebdb;
  text-align: left;                
  width: min(1100px, 86vw);
}

.projekti-block-one-text h2,
.box-text-two h2{
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  margin: 0 0 4px 0;
}

.projekti-block-one-text p,
.box-text-two p{
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #748cab;
}

.scroll-reveal {
  display: inline-block;
  background: linear-gradient(to right, #fff 0%, #fff var(--progress, 0%), #555 var(--progress, 0%), #555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: none; 
}



.projekti-block-new {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  color: white;
}

.projekti-block-new .hero-text {
  max-width: 800px;
  margin-top: -5rem;
}

.projekti-block-new .hero-otsikko {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: -2rem;
  font-size: 5rem !important;
}

.projekti-block-new .hero-text h2,
.projekti-block-new .hero-text p {
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom center;
  filter: blur(10px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    filter 0.6s ease;
}

.projekti-block-new .hero-text.visible h2 {
  opacity: 1;
  transform: scaleY(1);
  filter: blur(0);
  transition-delay: 0.1s;
}

.projekti-block-new .hero-text.visible p {
  opacity: 1;
  transform: scaleY(1);
  filter: blur(0);
  transition-delay: 0.4s;
}

.projekti-block-new .hero-kuvaus {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

.projekti-block-new .hero-nappi {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background-color: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 10;
}

.projekti-block-new .hero-nappi:hover {
  background-color: #000000;
  transform: translateX(-50%) scale(1.2);
}

.projekti-block-new .btn-icon {
  width: 32px;
  height: 32px;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}


body.light-mode #projektit {
  background-color: #f0ebdb;
}

body.light-mode #palloProjektit {
  background: #0d1321;
}

body.light-mode .projekti-block-one,
body.light-mode .projekti-block-two,
body.light-mode .projekti-block-new {
  background-color: #ffffff; 
  color: #0d1321;           
}

body.light-mode .inner-box-one,
body.light-mode .inner-box-two {
  background-color: #e0dcd0; 
  box-shadow: 0 4px 12px rgba(0, 87, 231, 0.2); 
}


body.light-mode .inner-box-one,
body.light-mode .inner-box-two{
  background: #eae6da;
  border-color: rgba(13,19,33,0.15);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

body.light-mode .projekti-block-one-text h2,
body.light-mode .projekti-block-two h2,
body.light-mode .box-text-two h2,
body.light-mode .projekti-block-new .hero-otsikko {
  color: #0d1321;
}

body.light-mode .projekti-block-one-text p,
body.light-mode .projekti-block-two p,
body.light-mode .box-text-two p,
body.light-mode .projekti-block-new .hero-text p {
  color: #748cab; 
}

body.light-mode .projekti-block-new .hero-nappi:hover {
  background-color: #0d1321;
}

body.light-mode .projekti-block-new .btn-icon {
  filter: invert(0%); 
}


body.light-mode  .scroll-reveal {
  display: inline-block;
  background: linear-gradient(to right, #555 0%, #555 var(--progress, 0%),  #fff  var(--progress, 0%),  #fff  100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: none; 
}








#pallokayttoehdot {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;

  z-index: 100;
  pointer-events: none !important;
  background: radial-gradient(circle, #f0ebdb 60%, transparent 100%);
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: center center;
  transition: background 0.3s ease;
}

body.light-mode #pallokayttoehdot {
  background: radial-gradient(circle, #0d1321 60%, transparent 100%);
}

.terms-section {
  background: #000000;
  color: #eee;

  padding: 60px 20px;
  text-align: center;
}

.terms-section h2 {
  margin-top: 10vh;
  font-size: 5rem;
  margin-bottom: 40px;
}


.terms-content {
  max-width: 800px;   
  margin: 0 auto;     
  text-align: left;   
}

.term {
  margin-bottom: 40px;
}

.term h3 {
  font-size: 2.3rem;
  margin-bottom: 20px;
}

.term p {
  font-size: 1.3rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.6; 
}


.term ul {
  padding-left: 20px;
  margin-top: 10px;
}

.term ul li {
  margin-bottom: 8px;
  font-size: 1.2rem;
}


body.light-mode .terms-section {
  background: #ffffff;
  color: #1d2d44;
}

body.light-mode .terms-section h2,
body.light-mode .term h3 {
  color: #0d1321;
}

body.light-mode .term p,
body.light-mode .term ul li {
  color: #3e5c76;
}


@media (max-width: 900px){
  
  #projektit{ padding: 0; }
  #palloProjektit{ width:14px; height:14px; }

  
  .projekti-block-new{ height: 70vh; padding: 0 6vw; }
  .projekti-block-new .hero-text{ margin-top: -2rem; max-width: 92vw; }
  .projekti-block-new .hero-otsikko{ font-size: clamp(2rem, 8vw, 3rem) !important; margin-bottom: -1rem; }
  .projekti-block-new .hero-kuvaus{ font-size: clamp(1rem, 3.8vw, 1.15rem); }
  .projekti-block-new .hero-nappi{ bottom: 28px; width: 70px; height: 70px; }
  .projekti-block-new .btn-icon{ width:24px; height:24px; }

  
  .projekti-block-one,
  .projekti-block-two{ min-height: 82vh; padding: 10vh 4vw 8vh; }

  .inner-box-one,
  .inner-box-two{
    width: 92vw;
    aspect-ratio: 16/10;         
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  }

  .projekti-block-one-text,
  .box-text-two{ width: 92vw; margin-top: 6px; }

  .projekti-block-one-text h2,
  .box-text-two h2{ font-size: clamp(1.5rem, 6.4vw, 2.2rem); }

  .projekti-block-one-text p,
  .box-text-two p{ font-size: clamp(0.98rem, 4.2vw, 1.2rem); }
}

@media (max-width: 480px){
  .projekti-block-one,
  .projekti-block-two{ min-height: 74vh; padding: 8vh 4vw; }

  .inner-box-one,
  .inner-box-two{ width: 94vw; aspect-ratio: 4/3; }
}


#palloevasteet {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
  background: radial-gradient(circle, #f0ebdb 60%, transparent 100%);
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: center center;
  transition: background 0.3s ease;
}

body.light-mode #palloevasteet {
  background: radial-gradient(circle, #0d1321 60%, transparent 100%);
}


.cookie-inline-status{ 
  margin-top: 12px;
  font-size: 1rem;
  text-align: center;
  font-weight: 600;
  opacity: 0;
  transition: opacity .35s ease;
}
.cookie-inline-status.show{ opacity: 1; }
.cookie-inline-status.ok{ color: #00c16a; }
.cookie-inline-status.err{ color: #ff4d4f; }
.cookie-inline-status .msg{ display: none; }
.cookie-inline-status .msg[hidden]{ display: none; }
.cookie-inline-status.show .msg:not([hidden]){ display: inline; }


#pallotietosuoja {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
  background: radial-gradient(circle, #f0ebdb 60%, transparent 100%);
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: center center;
  transition: background 0.3s ease;
}

body.light-mode #pallotietosuoja {
  background: radial-gradient(circle, #0d1321 60%, transparent 100%);
}


.cookies-section {
 background-color: black; 
  color: #eee;
  pointer-events: none;
  padding: 60px 20px;
  text-align: center;
}

.cookies-section h2 {
  margin-top: 10vh;
  font-size: 5rem;
  margin-bottom: 40px;
}

.cookies-section .term {
  margin-bottom: 40px;
}

.cookies-section .term h3 {
  font-size: 2.3rem;
  margin-bottom: 20px;
}

.cookies-section .term p {
  font-size: 1.3rem;
  opacity: 0.9;
  margin: 0;
}

.cookies-section .cookie-actions-inline{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

body.light-mode .cookies-section {
  background: #ffffff;
  color: #1d2d44;
}

body.light-mode .cookies-section h2,
body.light-mode .cookies-section .term h3 {
  color: #0d1321;
}

body.light-mode .cookies-section .term p {
  color: #3e5c76;
}


.privacy-section {
  background: #000000;
  color: #eee;
 
  padding: 60px 20px;
  text-align: center;
}

.privacy-section h2 {
  margin-top: 10vh;
  font-size: 5rem;
  margin-bottom: 40px;
}


.privacy-section .term {
  max-width: 800px;
  margin: 0 auto 50px auto;
  text-align: left;
  background: rgba(255, 255, 255, 0.03); 
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}


.privacy-section .term h3 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(240,235,219,0.2);
  padding-bottom: 10px;
}

.privacy-section .term h4 {
  font-size: 1.6rem;
  margin: 25px 0 10px 0;
  color: #f0ebdb;
}

.privacy-section .term p {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
  margin: 10px 0;
}

.privacy-section .term a {
  color: #f0ebdb;
  text-decoration: underline;
}

.privacy-section .term ul {
  padding-left: 20px;
  margin-top: 10px;
}

.privacy-section .term ul li {
  margin-bottom: 8px;
  font-size: 1.2rem;
  line-height: 1.5;
}


body.light-mode .privacy-section {
  background: #ffffff;
  color: #1d2d44;
}

body.light-mode .privacy-section h2,
body.light-mode .privacy-section .term h3,
body.light-mode .privacy-section .term h4 {
  color: #0d1321;
}

body.light-mode .privacy-section .term p,
body.light-mode .privacy-section .term ul li {
  color: #3e5c76;
}

body.light-mode .privacy-section .term {
  background: rgba(0, 0, 0, 0.03);
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}







#my-cookie-banner{
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(960px, 96vw);
  background: #0d1321;
  color: #f0ebdb;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  border: 1px solid #1d2d44;
  z-index: 9999;
  padding: 16px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
#my-cookie-banner.show{ opacity:1; pointer-events:auto; }

.cookie-bar{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:clamp(10px,2.4vw,22px); }
.cookie-left{ display:flex; align-items:center; justify-content:center; }
.cookie-center{ text-align:center; }
.cookie-right{ display:flex; align-items:center; justify-content:flex-end; }

.cookie-icon{ width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center; background:#121a2a; color:#f0ebdb; border-radius:12px; }

.cookie-bar p{ margin:0; font-size:clamp(0.95rem,2.6vw,1.125rem); line-height:1.4; opacity:.95; }
.cookie-bar a.cookie-readmore{ color:#f0ebdb; text-decoration:underline; }
.cookie-bar a.cookie-readmore:hover{ color:#748cab; }
.cookie-bar .cookie-readmore{ color:#f0ebdb; text-decoration: underline; }

.cookie-actions{ display:flex; align-items:center; gap:clamp(8px,1.8vw,16px); }
.cookie-pill{ appearance:none; border:2px solid #f0ebdb; background:#ffffff; color:#0d1321; border-radius:999px; padding:10px 18px; font-weight:700; font-size:clamp(0.95rem,2.8vw,1.15rem); cursor:pointer; }
.cookie-pill.primary{ background:#ffffff; color:#0d1321; }
.cookie-pill:hover{ filter:brightness(.92); }


.cookie-gear{ width:46px; height:46px; border-radius:50%; border:2px solid #f0ebdb; background:#0d1321; color:#f0ebdb; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.cookie-gear:hover{ background:#121a2a; }

.cookie-lang{
  margin-left: 12px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #f0ebdb;
  background: #0d1321;
  color: #f0ebdb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cookie-lang:hover{ background:#121a2a; }


body.light-mode .cookie-lang{
  border-color: #0d1321;
  background: #f0ebdb;
  color: #0d1321;
}
body.light-mode .cookie-lang:hover{ filter: brightness(0.92); }

#cookie-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:9998; opacity:0; transition:opacity .35s ease; pointer-events:none; }
#cookie-backdrop.show{ opacity:1; pointer-events:auto; }

@media (max-width: 720px){
  #my-cookie-banner{ padding:14px 14px; border-radius:16px; }
  .cookie-bar{ grid-template-columns:1fr; text-align:center; }
  .cookie-left{ display:none; }
  .cookie-right{ justify-content:center; }
  .cookie-right{ gap: 10px; }
}



body.light-mode #my-cookie-banner {
  background-color: #f0ebdb; 
  color: #1d2d44;           
  border-top: 1px solid #3e5c76;
}

body.light-mode #btn-accept-cookie,
body.light-mode #btn-reject-cookie {
  background-color: #3e5c76;
  color: #f0ebdb;
}

body.light-mode #btn-accept-cookie:hover,
body.light-mode #btn-reject-cookie:hover {
  background-color: #1d2d44;
  color: #f0ebdb;

}

.cookie-bar .cookie-readmore { text-decoration: underline; color: #f0ebdb; }



.cookies-section .cookie-actions-inline,
.cookies-section .cookie-actions-inline * { pointer-events: auto; }

.cookie-inline-status{
  margin: 12px auto 0;
  max-width: 820px;
  font-size: 1.05rem;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s ease, transform .25s ease, border-color .25s ease;
}
.cookie-inline-status.show{ opacity: 1; transform: translateY(0); }
.cookie-inline-status.ok { color:#d2f8e3; background: rgba(16,120,72,.15); border-color: rgba(16,120,72,.35); }
.cookie-inline-status.err{ color:#ffd7d7; background: rgba(160,30,30,.15); border-color: rgba(160,30,30,.35); }

body.light-mode .cookie-inline-status.ok { color:#0d1321; background: rgba(22,170,110,.15); border-color: rgba(22,170,110,.35); }
body.light-mode .cookie-inline-status.err{ color:#0d1321; background: rgba(220,80,80,.18); border-color: rgba(220,80,80,.45); }

